#ifndef AD_VALUE_H
#define AD_VALUE_H

#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <string.h>
#include <iostream>

#define MaxSize 20

using namespace std;

class AD_value
{
private:
    /* data */
    int fd_adc;
    int adc_Value;
    string AdDevice_Path;
    char adc_buffer[MaxSize];
    bool status;
public:
    AD_value();
    int adc_read();
};


#endif
